/*
 * Vuex入口
 */
import Vue from "vue";
import Vuex from "vuex";

import user from "./modules/user"; // 导入user模块
import shoppingCart from "./modules/shoppingCart";

Vue.use(Vuex);

export default new Vuex.Store({
  strict: true,
  modules: {
    user, // 注册user模块
    shoppingCart,
  },
});
